#!/usr/bin/php -q
<?php
$url = $argv[1];
$fname = $argv[2];
$data = file_get_contents($url);
file_put_contents($fname, $data);
exit(0);
?>